@charset "UTF-8";

/*
 
    document   : css初始化 重复class类
    Created on : 2017-07-13
    Author     : 
    Description:
                css样式表的初始化，全局样式设置
 
 */

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body,
div,
ul,
ol,
li,
p,
a,
i,
em,
img,
form,
input,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  -webkit-top-height-color: transparent; /* 点击高亮透明 */
  -webkit-text-size-adjust: none; /* 阻止旋转屏幕时自动调整字体大小 */
}

body {
  color: #000;
  font: 12px/1.4 "Microsoft YaHei", Arial, sans-serif;
  background-color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #000;
  background-color: transparent;
}

li {
  list-style-type: none;
}

img {
  border: 0;
  vertical-align: middle;
}

p {
  word-wrap: break-word;
}

em,
strong {
  font-style: normal;
  font-weight: normal;
}

input,
button,
select,
textarea {
  resize: none; /* 禁止textarea拉伸 */
  outline: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: 1px solid #ccc;
  padding: 1px;
}

input[type="text"]:focus {
  border: 1px solid #ccc;
}

input[type="search"] {
  -webkit-appearance: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

/* 解决Input type = number 错乱问题 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

.w {
  display: block;
  width: 100%;
}

.h {
  display: block;
  height: 100%;
}

.wh {
  display: block;
  width: 100%;
  height: 100%;
}

ul.block {
  /* 解决ul没有高 */
  overflow: hidden;
}

.omit {
  /* 单行省略 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 多行省略 */
.more_omit {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* 显示几行写几 */
}

.left {
  float: left;
}

.right {
  float: right;
}

/* 清除浮动 */
.clearfix:before,
.clearfix:after {
  content: "";
  display: block;
  height: 0;
  line-height: 0;
  visibility: hidden;
  clear: both;
}
